//
//  QLoginButton.m
//  QMCXDriver
//
//  Created by Massimo on 2017/4/15.
//  Copyright © 2017年 Massimo. All rights reserved.
//

#import "QLoginButton.h"

@implementation QLoginButton


- (UIColor *)highLightColor{
    return LLColorRGB(0, 193, 110);
}
- (UIColor *)normalColor{
    return LLColorRGB(215, 215, 215);
}
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    self.layer.cornerRadius = CGRectGetHeight(rect)/2;
    self.layer.masksToBounds = YES;
    CGContextRef context = UIGraphicsGetCurrentContext();
    [(self.enabled ? self.highLightColor : self.normalColor) setFill]; 
    CGContextAddRect(context, rect);
    CGContextFillPath(context);
}


@end
